.home {
    padding: 16px;

    .panel {
        margin-bottom: 16px;
        border-radius: 8px;
        background: #fff;
        border: 1px solid #f0f0f0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .panel-summary {
        .panel-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .summary-wrap {
            padding: 8px 4px 4px;
        }

        /* 在两大分栏之间增加中间竖线（作用在整行，确保存在） */
        >.ant-row {
            position: relative;
        }

        >.ant-row>.ant-col:nth-child(2) {
            position: relative;
        }

        >.ant-row>.ant-col:nth-child(2)::before {
            content: "";
            position: absolute;
            left: -12px;
            /* 与 gutter 24px 对等，两边各 12 */
            top: 4px;
            bottom: 4px;
            width: 1px;
            background: #e5e5e5;
        }

        .summary-col.left {
            position: relative;
        }

        .summary-col.left::after {
            content: "";
            position: absolute;
            top: 4px;
            right: 0;
            width: 1px;
            height: calc(100% - 8px);
            background: #eee;
        }

        .summary-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 36px;
        }

        .summary-item .label {
            color: rgba(0, 0, 0, 0.45);
        }

        .summary-item .value {
            margin-left: 24px;
            color: rgba(0, 0, 0, 0.88);
            font-weight: 600;
        }

        .summary-item .value-inline {
            margin-left: 16px;
            color: rgba(0, 0, 0, 0.88);
            font-weight: 600;
        }

        .summary-item .right-action {
            margin-left: 12px;
        }

        .v-divider {
            margin: 8px 0;
            /* 去除横线，仅保留间距 */
            border-top: 0 !important;
            border-block-start: 0 !important;
            background: transparent !important;

            &.ant-divider-horizontal {
                border-top: 0 !important;
                border-block-start: 0 !important;
            }
        }
    }

    .chart-card .panel-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
    }

    .chart-box {
        display: flex;
        align-items: center;
    }

    .donut {
        width: 260px;
        height: 260px;
        margin: 8px 24px 8px 8px;
        border-radius: 50%;
        position: relative;
    }

    .echart {
        background: #fff;
    }

    .center-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .center-text .big {
        font-size: 28px;
        font-weight: 700;
    }

    .center-text .small {
        color: rgba(0, 0, 0, 0.45);
    }

    .legend {
        flex: 1;
        padding: 8px 8px 8px 0;
    }

    .legend-row {
        display: flex;
        align-items: center;
        height: 32px;
        color: rgba(0, 0, 0, 0.65);
    }

    .legend-row .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        margin-right: 12px;
    }

    .legend-row .name {
        color: rgba(0, 0, 0, 0.65);
    }

    .legend-row .spacer {
        flex: 1;
    }

    .legend-row .number {
        color: rgba(0, 0, 0, 0.88);
    }

    /* 统计图表样式 */
    .stats-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        height: auto;
    }

    .stats-title {
        font-size: 18px;
        font-weight: 600;
        color: #000;
    }

    .stats-tabs {
        display: flex;
        gap: 0;
    }

    .stats-tabs .tab {
        padding: 8px 16px;
        border: none;
        background: transparent;
        color: rgba(0, 0, 0, 0.45);
        cursor: pointer;
        font-size: 14px;
        transition: all 0.2s;
        position: relative;
    }

    .stats-tabs .tab.active {
        color: #82C91E;
        font-weight: 500;
    }

    .stats-tabs .tab.active::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: #82C91E;
    }

    .stats-chart {
        height: 500px;
        width: 100%;
    }

    /* 排名表格 */
    .rank-table {
        margin-top: 8px;
    }

    .rank-head,
    .rank-row {
        display: grid;
        grid-template-columns: 80px 1fr 120px 120px 120px;
        align-items: center;
        padding: 12px 8px;
    }

    .rank-head {
        color: rgba(0, 0, 0, 0.45);
        border-bottom: 1px solid #eee;
        font-weight: 500;
    }

    .rank-row {
        border-bottom: 1px solid #f5f5f5;
    }

    .rank-row:last-child {
        border-bottom: none;
    }

    .badge {
        display: inline-flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #fff;
        margin-right: 8px;
        font-weight: 600;
    }

    .badge.blue {
        background: #3b82f6;
    }

    .badge.orange {
        background: #f59e0b;
    }
}